public class Measurement {
	private int stn;
	private String date;
	private String time;
	private float temp;
	private float dewp;
	private float stp;
	private float slp;
	private float visib;
	private float wdsp;
	private float prcp;
	private float sndp;
	private int frshtt;
	private float cldc;
	private int wnddir;
	
	public int getStn() {
		return stn;
	}
	public void setStn(int stn) {
		this.stn = stn;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}
	public float getTemp() {
		return temp;
	}
	public void setTemp(float temp) {
		temp = Math.round(temp*10.0f) / 10.0f;
		this.temp = temp;
	}
	public float getDewp() {
		return dewp;
	}
	public void setDewp(float dewp) {
		dewp = Math.round(dewp*10.0f) / 10.0f;
		this.dewp = dewp;
	}
	public float getStp() {
		return stp;
	}
	public void setStp(float stp) {
		stp = Math.round(stp*10.0f) / 10.0f;
		this.stp = stp;
	}
	public float getSlp() {
		return slp;
	}
	public void setSlp(float slp) {
		slp = Math.round(slp*10.0f) / 10.0f;
		this.slp = slp;
	}
	public float getVisib() {
		return visib;
	}
	public void setVisib(float visib) {
		visib = Math.round(visib*10.0f) / 10.0f;
		this.visib = visib;
	}
	public float getWdsp() {
		return wdsp;
	}
	public void setWdsp(float wdsp) {
		wdsp = Math.round(wdsp*10.0f) / 10.0f;
		this.wdsp = wdsp;
	}
	public float getPrcp() {
		return prcp;
	}
	public void setPrcp(float prcp) {
		prcp = Math.round(prcp*100.0f) / 100.0f;
		this.prcp = prcp;
	}
	public float getSndp() {
		return sndp;
	}
	public void setSndp(float sndp) {
		sndp = Math.round(sndp*10.0f) / 10.0f;
		this.sndp = sndp;
	}
	public int getFrshtt() {
		return frshtt;
	}
	public void setFrshtt(int frshtt) {
		this.frshtt = frshtt;
	}
	public float getCldc() {
		return cldc;
	}
	public void setCldc(float cldc) {
		cldc = Math.round(cldc*10.0f) / 10.0f;
		this.cldc = cldc;
	}
	public int getWnddir() {
		return wnddir;
	}
	public void setWnddir(int wnddir) {
		this.wnddir = wnddir;
	}

	public long getDateTime() {
		long datetime = Long.parseLong((date + time).replaceAll("[^0-9]",""));
		return datetime;
	}
	
	@Override
	public String toString() {
		return stn+";"+date+";"+time+";"+temp+";"+dewp+";"+stp+";"+slp+";"+visib+";"+wdsp+";"+prcp+";"+sndp+";"+frshtt+";"+cldc+";"+wnddir; 
	}
	

}
